package com.version1_3.dao;

import java.util.List;
import java.util.Map;

/**
 * Created by kuibu on 16/2/23.
 */
public interface ActivityDao {

    public boolean joinActivity(int userId, int activityId);

    public boolean addActivityJoinNumber(int activityId);

    public List<Map<String, Object>> getActivityInfoByType(int activityType);

    public Map<String, Object> getActivityInfoById(int activityId);

    public List<Map<String, Object>> getUserActivityInfo(int userId);

    public Map<String, Object> getActivityInfo(int userId, int activityId);

    public List<Map<String, Object>> getUserWeekLaunchInfo(int userId, int activityId);

    public Map<String, Object> getUserLaunchPageInfo(int userId, int activityId);

    public boolean addNewLaunchRecord(int userId, int activityId, String currData, String data1, int data3, int coin, double money);

    public boolean freshLaunchRecord(int userId, int activityId, String currData, int data3, int coin, double money);

    public boolean addLaunchRecord(int userId, int activityId, String currData, String data1, int coin, double money);

    public boolean addUserActivityCoin(int userId, int activityId, int coin);

    public Map<String, Object> getShareLaunchCardInfo(int userId, int activityId);

    public Map<String, Object> getUserTodayActivityInfo(int userId, int activityId);

    /**
     * 获取用户今日活动打卡积分
     */
    public int getUserLaunchCardCoin(int userId);

    public int getUserLaunchCardCoinCount(int userId);

    public boolean recordActivityShare(int userId, int activityId);

    public int getActivityShareCoin(int userId);

    public int getActivityShareCoinCount(int userId);


    // 获取用户各个活动坚持天数
    public int getInsistDays(int userId, int activityId);

    // 获取用户活动总的捐献金额
    public double getUserDonateMoneyCount(int userId);
}
